import Mock from 'mockjs'
import userApi from './user'

Mock.setup({
  timeout: '350-600'
})

const initMock = () => {
  Mock.mock(/\/user\/\.*/, 'get', userApi.getUserInfo)
}

if (process.env.NODE_ENV === 'development') {
  initMock()
}

export default Mock
